package cn.yzfy.common.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * 抽象id实体类基类
 */

@Getter public abstract class AbstractIdEntity implements IEntity {
  @Serial
  private static final long serialVersionUID = -2130771588764923791L;
  
  /**
   * 自增主键id
   */
  @Setter
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
}